package _1._0._0._127.ormrpc.services.WSOtherBillFacade;

public class WSOtherBillFacadeSrvProxyProxy implements WSOtherBillFacadeSrvProxy {
    private String _endpoint = null;
    private WSOtherBillFacadeSrvProxy wSOtherBillFacadeSrvProxy = null;

    public WSOtherBillFacadeSrvProxyProxy() {
        _initWSOtherBillFacadeSrvProxyProxy();
    }

    public WSOtherBillFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSOtherBillFacadeSrvProxyProxy();
    }

    private void _initWSOtherBillFacadeSrvProxyProxy() {
        try {
            wSOtherBillFacadeSrvProxy = (new WSOtherBillFacadeSrvProxyServiceLocator()).getWSOtherBillFacade();
            if (wSOtherBillFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSOtherBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSOtherBillFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSOtherBillFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSOtherBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSOtherBillFacadeSrvProxy getWSOtherBillFacadeSrvProxy() {
        if (wSOtherBillFacadeSrvProxy == null)
            _initWSOtherBillFacadeSrvProxyProxy();
        return wSOtherBillFacadeSrvProxy;
    }

    public String[] submit(String xmlData) throws java.rmi.RemoteException, otherbillfacade.client.WSInvokeException {
        if (wSOtherBillFacadeSrvProxy == null)
            _initWSOtherBillFacadeSrvProxyProxy();
        return wSOtherBillFacadeSrvProxy.submit(xmlData);
    }


}